<?php
$jige = 75;

$shuxue = 100;
$wangye = 90;
$yuwen = 80;
$pingjun = ($shuxue + $wangye + $yuwen)/3;
/*
echo "平均分的及格线=$jige<br/>";
echo "数学=$shuxue<br/>"; 
echo "网页设计=$wangye<br/>";
echo "语文=$yuwen<br/>";  
echo "平均分=$pingjun<br/>";
echo "你的分数：";

if ($pingjun >= $jige){
      echo "<font color=green>及格</font>"; 
}
else {
    echo "<font color=red>不及格</font>";
}

 * <?php if ($pingjun >=$jige：) ?>
        <span style="color:green">及格</span>
         <?php else ?>
          <span style="color:red">不及格</span>
         <?php endif; ?>
 * 
 * 后面的作业！！！！！！
 * <?php if($pingjun >=$jige：) { ?>
    <span style="color:green">及格</span>
<?php }else if { ?>
     <span style="color:red">不及格</span>
<?php } ?>
 * 
 * if($pingjun >=$jige) :{
	echo "<p>及格</p>";
}else {
	echo "<p>不及格</p>";
}
 * 
 * 
 * 
 *  */
?>

<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
         <p>练习</p>
	平均分的及格线=<?php echo $jige;?><br/>
        数学=<?php echo$shuxue;?><br/> 
        网页设计=<?php echo$wangye;?><br/>
        语文=<?php echo$yuwen;?><br/>  
        平均分=<?php echo$pingjun;?><br/>
        你的分数：
          <?php if($pingjun >=$jige) : ?>
        <span style="color:green">及格</span>
        <?php else : ?>
        <span style="color:red">不及格</span>
        <?php endif; ?>
        

</body>
</html>